<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
   </head>
   <body style="height: 100%; margin: 0">
       <div id="container" style="height: 100%"></div>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
       <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
       <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    title: {
        text: 'Eproduct-CPU使用率',
        left: 'center',
        top:'3%'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
         left: '6%',
         bottom: '80%',
        data:['Eproduct-1(10.168.10.5)','Eproduct-2(10.168.10.6)','Eproduct-3(10.168.10.7)','Eproduct-4(10.168.10.8)','Eproduct-5(10.168.10.9)']
    },
     grid: {
        left: '6%',
        right: '4%',
        bottom: '1%',
        top:'30%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        name: '时间',
        data: ['2018/02/08 05:30:00','2018/02/08 06:00:00','2018/02/08 07:30:00','2018/02/08 08:00:00','2018/02/08 09:00:00','2018/02/08 10:00:00','2018/02/08 11:00:00']
    },
     yAxis: {
        type: 'value',
        name:'数据%'
    },
    series: [
        {
            name:'Eproduct-1(10.168.10.5)',
            type:'line',
            stack: '总量',
            data:[20, 32, 10, 34, 20, 30, 10]
        },
        {
            name:'Eproduct-2(10.168.10.6)',
            type:'line',
            stack: '总量',
            data:[10, 18, 19, 23, 29, 33, 31]
        },
        {
            name:'Eproduct-3(10.168.10.7)',
            type:'line',
            stack: '总量',
            data:[15, 23, 20, 15, 19, 33, 23]
        },
        {
            name:'Eproduct-4(10.168.10.8)',
            type:'line',
            stack: '总量',
            data:[30, 33, 31, 34, 39, 30, 20]
        },
        {
            name:'Eproduct-5(10.168.10.9)',
            type:'line',
            stack: '总量',
            data:[20, 32, 19, 34, 29, 13, 20]
        }
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
       </script>
   </body>
</html>